package com.infoland.afanmall.model.youXuan.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * @author 王永吉
 * @date 2018/7/11 9:51
 */
public class PtResponse implements MultiItemEntity {

    /**
     * totalRow : 31
     * pageNumber : 1
     * firstPage : true
     * lastPage : false
     * totalPage : 16
     * pageSize : 2
     * list : [{"gs_description":"asdfasdf","gs_name":"dfadsfasdf","create_time":"2018-07-09 19:52:22","gs_image":"http://file.dwys.aft100.com/group1/M00/00/29/rBG7OFtDTHWAFw7_AAP_a0aIP3c01.jpeg","modify_time":null,"id":2,"goods_ids":"[102, 122]","gs_context":"[{\"text\": \"asdfasdf\", \"type\": \"text\"}, {\"type\": \"image\", \"image\": {\"url\": \"http://file.dwys.aft100.com/group1/M00/00/29/rBG7OFtDTHWAOWN8AAP_a0aIP3c690.jpg\", \"fileName\": \"1 001.jpg\"}}]","goods_price_ids":"[398, 592]","isSeries":true},{"g_end_time":"2018-12-31 23:55:00","g_sort":1,"g_ft_id":null,"modify_time":"2018-07-03 15:06:35","g_trace_code":null,"g_cate_id":1,"g_status_v":"正常","g_rate":0.1,"g_hot_start_time":null,"goods_hot_price":null,"g_hot_end_time":null,"g_labels":"[]","g_type_v":"普通","g_name":"柴鸡蛋50枚","g_indate":"2018-12-31 23:55:00","store_name":"吉林省阿凡提科技有限公司","id":141,"g_status":1,"f_url":"http://file.dwys.aft100.com/group1/M00/00/16/rBG7OFrW2WaAOl2eAABoPHlMIMo102.jpg","g_province":null,"store_id":24,"business_name":"吉林省阿凡提科技有限公司","create_time":"2018-04-18 13:36:38","g_type":1,"g_hot_flag":0,"g_price":0.1,"g_introduction":"仅限长春市内配送","g_content":"<p><span style=\"color:#e74c3c\"><span style=\"font-size:16px\"><strong>温馨提示：<\/strong><\/span><\/span><\/p>\n\n<p><span style=\"color:#e74c3c\"><span style=\"font-size:16px\"><strong>由于鸡蛋的特殊性，此宝贝只限长春市内客户购买并配送送货上门，敬请谅解！！<\/strong><\/span><\/span><\/p>\n\n<p><span style=\"color:#e74c3c\"><span style=\"font-size:16px\"><strong><img alt=\"\" src=\"http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3QKAc9sKAAGo5gcu3iQ623.jpg\" /><img alt=\"\" src=\"http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3QuARq6_AAHEJcTdH4U919.jpg\" /><img alt=\"\" src=\"http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3RaAKT2GAALb875tqpg572.jpg\" /><img alt=\"\" src=\"http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3SGAfYieAADStlmpcII529.jpg\" /><img alt=\"\" src=\"http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3SyARwKWAAKCdlC0dDo581.jpg\" /><img alt=\"\" src=\"http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3TWATJUYAAFj8Ihny5k204.jpg\" /><img alt=\"\" src=\"http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3T-AdlrsAAFC-i0d31g689.jpg\" /><img alt=\"\" src=\"http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3UqAVwWwAAJ-sFNCZ2k942.jpg\" /><\/strong><\/span><\/span><\/p>\n","g_origin_price":"1","g_browse_count":0,"g_start_time":"2018-04-18 13:34:00","g_sales":639,"g_stock":672,"g_favs":0,"business_id":6},{"g_end_time":"2018-07-31 23:55:00","g_sort":1,"g_ft_id":null,"modify_time":null,"g_trace_code":null,"g_cate_id":1,"g_status_v":"正常","g_rate":0.01,"g_hot_start_time":null,"goods_hot_price":null,"g_hot_end_time":null,"g_labels":"[]","g_type_v":"普通","g_name":"猪肉","g_indate":null,"store_name":"吉林省阿凡提科技有限公司","id":205,"g_status":1,"f_url":"http://47.94.246.198/group1/M00/00/26/rBG7OFs8GpGAYY84AABxgQOxy4I609.jpg","g_province":null,"store_id":24,"business_name":"吉林省阿凡提科技有限公司","create_time":"2018-07-04 08:53:38","g_type":1,"g_hot_flag":0,"g_price":0.01,"g_introduction":"这是个商品简介","g_content":"<p>测试<\/p>\n","g_origin_price":"1","g_browse_count":0,"g_start_time":"2018-07-04 08:51:00","g_sales":11,"g_stock":57,"g_favs":0,"business_id":6}]
     */

    private int totalRow;
    private int pageNumber;
    private boolean firstPage;
    private boolean lastPage;
    private int totalPage;
    private int pageSize;
    private List<ListBean> list;

    @Override
    public int getItemType() {
        return YouXuanType.PT;

    }

    public int getTotalRow() {
        return totalRow;
    }

    public void setTotalRow(int totalRow) {
        this.totalRow = totalRow;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public boolean isFirstPage() {
        return firstPage;
    }

    public void setFirstPage(boolean firstPage) {
        this.firstPage = firstPage;
    }

    public boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(boolean lastPage) {
        this.lastPage = lastPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements MultiItemEntity {
        /**
         * gs_description : asdfasdf
         * gs_name : dfadsfasdf
         * create_time : 2018-07-09 19:52:22
         * gs_image : http://file.dwys.aft100.com/group1/M00/00/29/rBG7OFtDTHWAFw7_AAP_a0aIP3c01.jpeg
         * modify_time : null
         * id : 2
         * goods_ids : [102, 122]
         * gs_context : [{"text": "asdfasdf", "type": "text"}, {"type": "image", "image": {"url": "http://file.dwys.aft100.com/group1/M00/00/29/rBG7OFtDTHWAOWN8AAP_a0aIP3c690.jpg", "fileName": "1 001.jpg"}}]
         * goods_price_ids : [398, 592]
         * isSeries : true
         * g_end_time : 2018-12-31 23:55:00
         * g_sort : 1
         * g_ft_id : null
         * g_trace_code : null
         * g_cate_id : 1
         * g_status_v : 正常
         * g_rate : 0.1
         * g_hot_start_time : null
         * goods_hot_price : null
         * g_hot_end_time : null
         * g_labels : []
         * g_type_v : 普通
         * g_name : 柴鸡蛋50枚
         * g_indate : 2018-12-31 23:55:00
         * store_name : 吉林省阿凡提科技有限公司
         * g_status : 1
         * f_url : http://file.dwys.aft100.com/group1/M00/00/16/rBG7OFrW2WaAOl2eAABoPHlMIMo102.jpg
         * g_province : null
         * store_id : 24
         * business_name : 吉林省阿凡提科技有限公司
         * g_type : 1
         * g_hot_flag : 0
         * g_price : 0.1
         * g_introduction : 仅限长春市内配送
         * g_content : <p><span style="color:#e74c3c"><span style="font-size:16px"><strong>温馨提示：</strong></span></span></p>
         * <p>
         * <p><span style="color:#e74c3c"><span style="font-size:16px"><strong>由于鸡蛋的特殊性，此宝贝只限长春市内客户购买并配送送货上门，敬请谅解！！</strong></span></span></p>
         * <p>
         * <p><span style="color:#e74c3c"><span style="font-size:16px"><strong><img alt="" src="http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3QKAc9sKAAGo5gcu3iQ623.jpg" /><img alt="" src="http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3QuARq6_AAHEJcTdH4U919.jpg" /><img alt="" src="http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3RaAKT2GAALb875tqpg572.jpg" /><img alt="" src="http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3SGAfYieAADStlmpcII529.jpg" /><img alt="" src="http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3SyARwKWAAKCdlC0dDo581.jpg" /><img alt="" src="http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3TWATJUYAAFj8Ihny5k204.jpg" /><img alt="" src="http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3T-AdlrsAAFC-i0d31g689.jpg" /><img alt="" src="http://file.dwys.aft100.com/group1/M00/00/17/rBG7OFrW3UqAVwWwAAJ-sFNCZ2k942.jpg" /></strong></span></span></p>
         * <p>
         * g_origin_price : 1
         * g_browse_count : 0
         * g_start_time : 2018-04-18 13:34:00
         * g_sales : 639
         * g_stock : 672
         * g_favs : 0
         * business_id : 6
         */

        private String gs_description;
        private String gs_name;
        private String create_time;
        private String gs_image;
        private Object modify_time;
        private int id;
        private String goods_ids;
        private String gs_context;
        private String goods_price_ids;
        private boolean isSeries;
        private String g_end_time;
        private int g_sort;
        private Object g_ft_id;
        private Object g_trace_code;
        private int g_cate_id;
        private String g_status_v;
        private double g_rate;
        private Object g_hot_start_time;
        private Object goods_hot_price;
        private Object g_hot_end_time;
        private String g_labels;
        private String g_type_v;
        private String g_name;
        private String g_indate;
        private String store_name;
        private int g_status;
        private String f_url;
        private Object g_province;
        private int store_id;
        private String business_name;
        private int g_type;
        private int g_hot_flag;
        private double g_price;
        private String g_introduction;
        private String g_content;
        private String g_origin_price;
        private int g_browse_count;
        private String g_start_time;
        private int g_sales;
        private int g_stock;
        private int g_favs;
        private int business_id;

        public String getGs_description() {
            return gs_description;
        }

        public void setGs_description(String gs_description) {
            this.gs_description = gs_description;
        }

        public String getGs_name() {
            return gs_name;
        }

        public void setGs_name(String gs_name) {
            this.gs_name = gs_name;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public String getGs_image() {
            return gs_image;
        }

        public void setGs_image(String gs_image) {
            this.gs_image = gs_image;
        }

        public Object getModify_time() {
            return modify_time;
        }

        public void setModify_time(Object modify_time) {
            this.modify_time = modify_time;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getGoods_ids() {
            return goods_ids;
        }

        public void setGoods_ids(String goods_ids) {
            this.goods_ids = goods_ids;
        }

        public String getGs_context() {
            return gs_context;
        }

        public void setGs_context(String gs_context) {
            this.gs_context = gs_context;
        }

        public String getGoods_price_ids() {
            return goods_price_ids;
        }

        public void setGoods_price_ids(String goods_price_ids) {
            this.goods_price_ids = goods_price_ids;
        }

        public boolean isIsSeries() {
            return isSeries;
        }

        public void setIsSeries(boolean isSeries) {
            this.isSeries = isSeries;
        }

        public String getG_end_time() {
            return g_end_time;
        }

        public void setG_end_time(String g_end_time) {
            this.g_end_time = g_end_time;
        }

        public int getG_sort() {
            return g_sort;
        }

        public void setG_sort(int g_sort) {
            this.g_sort = g_sort;
        }

        public Object getG_ft_id() {
            return g_ft_id;
        }

        public void setG_ft_id(Object g_ft_id) {
            this.g_ft_id = g_ft_id;
        }

        public Object getG_trace_code() {
            return g_trace_code;
        }

        public void setG_trace_code(Object g_trace_code) {
            this.g_trace_code = g_trace_code;
        }

        public int getG_cate_id() {
            return g_cate_id;
        }

        public void setG_cate_id(int g_cate_id) {
            this.g_cate_id = g_cate_id;
        }

        public String getG_status_v() {
            return g_status_v;
        }

        public void setG_status_v(String g_status_v) {
            this.g_status_v = g_status_v;
        }

        public double getG_rate() {
            return g_rate;
        }

        public void setG_rate(double g_rate) {
            this.g_rate = g_rate;
        }

        public Object getG_hot_start_time() {
            return g_hot_start_time;
        }

        public void setG_hot_start_time(Object g_hot_start_time) {
            this.g_hot_start_time = g_hot_start_time;
        }

        public Object getGoods_hot_price() {
            return goods_hot_price;
        }

        public void setGoods_hot_price(Object goods_hot_price) {
            this.goods_hot_price = goods_hot_price;
        }

        public Object getG_hot_end_time() {
            return g_hot_end_time;
        }

        public void setG_hot_end_time(Object g_hot_end_time) {
            this.g_hot_end_time = g_hot_end_time;
        }

        public String getG_labels() {
            return g_labels;
        }

        public void setG_labels(String g_labels) {
            this.g_labels = g_labels;
        }

        public String getG_type_v() {
            return g_type_v;
        }

        public void setG_type_v(String g_type_v) {
            this.g_type_v = g_type_v;
        }

        public String getG_name() {
            return g_name;
        }

        public void setG_name(String g_name) {
            this.g_name = g_name;
        }

        public String getG_indate() {
            return g_indate;
        }

        public void setG_indate(String g_indate) {
            this.g_indate = g_indate;
        }

        public String getStore_name() {
            return store_name;
        }

        public void setStore_name(String store_name) {
            this.store_name = store_name;
        }

        public int getG_status() {
            return g_status;
        }

        public void setG_status(int g_status) {
            this.g_status = g_status;
        }

        public String getF_url() {
            return f_url;
        }

        public void setF_url(String f_url) {
            this.f_url = f_url;
        }

        public Object getG_province() {
            return g_province;
        }

        public void setG_province(Object g_province) {
            this.g_province = g_province;
        }

        public int getStore_id() {
            return store_id;
        }

        public void setStore_id(int store_id) {
            this.store_id = store_id;
        }

        public String getBusiness_name() {
            return business_name;
        }

        public void setBusiness_name(String business_name) {
            this.business_name = business_name;
        }

        public int getG_type() {
            return g_type;
        }

        public void setG_type(int g_type) {
            this.g_type = g_type;
        }

        public int getG_hot_flag() {
            return g_hot_flag;
        }

        public void setG_hot_flag(int g_hot_flag) {
            this.g_hot_flag = g_hot_flag;
        }

        public double getG_price() {
            return g_price;
        }

        public void setG_price(double g_price) {
            this.g_price = g_price;
        }

        public String getG_introduction() {
            return g_introduction;
        }

        public void setG_introduction(String g_introduction) {
            this.g_introduction = g_introduction;
        }

        public String getG_content() {
            return g_content;
        }

        public void setG_content(String g_content) {
            this.g_content = g_content;
        }

        public String getG_origin_price() {
            return g_origin_price;
        }

        public void setG_origin_price(String g_origin_price) {
            this.g_origin_price = g_origin_price;
        }

        public int getG_browse_count() {
            return g_browse_count;
        }

        public void setG_browse_count(int g_browse_count) {
            this.g_browse_count = g_browse_count;
        }

        public String getG_start_time() {
            return g_start_time;
        }

        public void setG_start_time(String g_start_time) {
            this.g_start_time = g_start_time;
        }

        public int getG_sales() {
            return g_sales;
        }

        public void setG_sales(int g_sales) {
            this.g_sales = g_sales;
        }

        public int getG_stock() {
            return g_stock;
        }

        public void setG_stock(int g_stock) {
            this.g_stock = g_stock;
        }

        public int getG_favs() {
            return g_favs;
        }

        public void setG_favs(int g_favs) {
            this.g_favs = g_favs;
        }

        public int getBusiness_id() {
            return business_id;
        }

        public void setBusiness_id(int business_id) {
            this.business_id = business_id;
        }

        @Override
        public int getItemType() {
            if (isSeries) {
                return YouXuanType.PT_BEAN_XL;
            } else {
                return YouXuanType.PT_BEAN_PT;
            }

        }
    }
}
